﻿using Paas.Core.Sys.Entities;
using Basefr.Attributes;
using Basefr.Core.Entities;
using System.ComponentModel.DataAnnotations.Schema;

namespace Paas.Core.Approvals.Entities
{
    /// <summary>
    /// 审批流程节点执行人
    /// </summary>
    [MainTable(nameof(ApproveTemplateStepOperator))]
    public class ApproveTemplateStepOperator : EntityBase
    {
        /// <summary>
        /// 审批流程模板节点
        /// </summary>
        public int TemplateStepId { get; set; }
        [ForeignKey(nameof(TemplateStepId))]
        public virtual ApproveTemplateStep TemplateStep { get; set; }

        /// <summary>
        /// 执行人
        /// </summary>
        public long OperatorId { get; set; }
        [ForeignKey(nameof(OperatorId))]
        public virtual User Operator { get; set; }
    }
}

